deprecation warnings and syntax adjustments

Changed the USERNAME variable to not have - in it because thtat's not allowed anymore

changed build -rm to build --rm because of deprecation warnings