Fixed error in directory path construction