minor modification in directory creation