Cleaned up deploy implementation - it now properly checks if the /packages directory exists and creates it if it can't find it.