use os.path.normpath method to write less code
cosmetic changes