public static function getDetectedStage($application = 'application', $path = null)
{
$current = $path ?: realpath(__DIR__);
preg_match('/' . $application . '\\/([a-zA-Z0-9_-]+)\\/releases\\/([0-9]{14})/', $current, $matches);
return isset($matches[1]) ? $matches[1] : false;
}