change directory if directory exists
Merge pull request #2 from ryuzee/lcd-patch

change directory if directory exists