add -e flag to readme, change dir check in script