fix permissions on folder before building package