Fixed incorrect logic for deploy library directory creation
Merge remote-tracking branch 'origin/fix_deploy_dir'