Make sure we found a valid deploy directory before using it
More Python-y naming conventions