remove . from generated path
permissions were funny
no . in dirname