Refactored bash_aliases, moved some functions to device specific blocks