Updated to handle sourcing files only if service is Bash