change indexing code to make external system call to import-index script (Might want to change in future versions, as it contains hard coded directories, etc)