create parent directory for application directory if needed