remove getting source file's directory
refactoring to shorten auto-bundle-exec-accept-line
add function to check pre condition
refactorings

- remove useless requiring
- use (()) rather than [[]] for numbers