Better path handling; must now use '.sh' for profile argument