remove command line argument check, detect path to script