How can I override the autocomplete.js file while developing a module?
As long as all you want to do is achievable by using form_alter() and #autocomplete_path, you should avoid modifying core's JavaScript files. To address specific field widget, use hook_field_widget_alter().

If you need to alter what JavaScript is doing, use corresponding behaviours, as described on StackOverflow.