Refactor: using os.path.join()
Fix: appendColor function