Added chdir to allow running ./elefant from other directories