Update main.py

changed method to determine if in the right BOOKS folder.