Fixed the script to correctly handle directories
Tweaked the custom bash prompt