fix mkdir to specify relative paths